package cisdi.mes.sm.rm.domain;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import cisdi.mes.utils.base.CustomDateSerializer;


import java.util.Date;


/**
 * The persistent class for the SM_RM_QUALITY_APPLY database table.
 * 
 */
@Entity
@org.hibernate.annotations.Entity(dynamicInsert=true, dynamicUpdate=true)
@Table(name="SM_RM_QUALITY_APPLY")
public class SmRmQualityApply implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id	
	@Column(name="QUALITY_BATCH")
	private String qualityBatch;

	@Column(name = "QUAL_WAY")
	private String qualWay;

	@Column(name="DRAW_NO")
	private String drawNo;

	@Column(name="ERP_DECISION")
	private String erpDecision;


	@Column(name="ERP_RETURN_TIME")
	private Date erpReturnTime;


	@Column(name="ERP_SEND_TIME")
	private Date erpSendTime;


	@Column(name="LAB_RETURN_TIME")
	private Date labReturnTime;


	@Column(name="LAB_SEND_TIME")
	private Date labSendTime;

	@Column(name="MATERIAL_DESC")
	private String materialDesc;

	@Column(name="MATERIAL_ID")
	private String materialId;

	@Column(name="MATERIAL_WEIGHT")
	private Double materialWeight;

	@Column(name="NEED_RECHECK")
	private String needRecheck;
 
	@JsonSerialize(using = CustomDateSerializer.class)
	@Column(name="PCS_SEND_TIME")
	private Date pcsSendTime;

	@Column(name="QUALITY_ID")
	private String qualityId;

	@Column(name="SAMPLE_ID")
	private String sampleId;

	@Column(name="SAMPLE_SITE")
	private String sampleSite;

	@Column(name="STANDARD_NO")
	private String standardNo;

    public SmRmQualityApply() {
    }

	public String getDrawNo() {
		return this.drawNo;
	}

	public void setDrawNo(String drawNo) {
		this.drawNo = drawNo;
	}

	public String getErpDecision() {
		return this.erpDecision;
	}

	public void setErpDecision(String erpDecision) {
		this.erpDecision = erpDecision;
	}

	public Date getErpReturnTime() {
		return this.erpReturnTime;
	}

	public void setErpReturnTime(Date erpReturnTime) {
		this.erpReturnTime = erpReturnTime;
	}

	public Date getErpSendTime() {
		return this.erpSendTime;
	}

	public void setErpSendTime(Date erpSendTime) {
		this.erpSendTime = erpSendTime;
	}

	public Date getLabReturnTime() {
		return this.labReturnTime;
	}

	public void setLabReturnTime(Date labReturnTime) {
		this.labReturnTime = labReturnTime;
	}

	public Date getLabSendTime() {
		return this.labSendTime;
	}

	public void setLabSendTime(Date labSendTime) {
		this.labSendTime = labSendTime;
	}

	public String getMaterialDesc() {
		return this.materialDesc;
	}

	public void setMaterialDesc(String materialDesc) {
		this.materialDesc = materialDesc;
	}

	public String getMaterialId() {
		return this.materialId;
	}

	public void setMaterialId(String materialId) {
		this.materialId = materialId;
	}

	public Double getMaterialWeight() {
		return this.materialWeight;
	}

	public void setMaterialWeight(Double materialWeight) {
		this.materialWeight = materialWeight;
	}

	public String getNeedRecheck() {
		return this.needRecheck;
	}

	public void setNeedRecheck(String needRecheck) {
		this.needRecheck = needRecheck;
	}

	public Date getPcsSendTime() {
		return this.pcsSendTime;
	}

	public void setPcsSendTime(Date pcsSendTime) {
		this.pcsSendTime = pcsSendTime;
	}

	public String getQualityId() {
		return this.qualityId;
	}

	public void setQualityId(String qualityId) {
		this.qualityId = qualityId;
	}

	public String getSampleId() {
		return this.sampleId;
	}

	public void setSampleId(String sampleId) {
		this.sampleId = sampleId;
	}

	public String getSampleSite() {
		return this.sampleSite;
	}

	public void setSampleSite(String sampleSite) {
		this.sampleSite = sampleSite;
	}

	public String getStandardNo() {
		return this.standardNo;
	}

	public void setStandardNo(String standardNo) {
		this.standardNo = standardNo;
	}



	public String getQualityBatch() {
		return qualityBatch;
	}



	public void setQualityBatch(String qualityBatch) {
		this.qualityBatch = qualityBatch;
	}



	public String getQualWay() {
		return qualWay;
	}



	public void setQualWay(String qualWay) {
		this.qualWay = qualWay;
	}

}